package com.rock.securityresearch.controller
import spark.route.HttpMethod
import spark.{Request, Response}

case class ApiResult[A](status: Int = 200, headers: Map[String, String] = Map("Contenty-Type" -> "application/json"), data:A)
case class Api[F[_]](method: HttpMethod = HttpMethod.get, path: String, handler: (req:Request, res:Response) => F[ApiResult[_]])

trait Controller[F[_]] {
    def getApis(): List[Api[F]]
}
